package com.zfskkk.democonsumerfeign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangfoshou
 * @date 2018/10/8 9:44
 */
@RestController
@RequestMapping("consumer")
public class HelloController {
    @Autowired
    private IHello iHello;

    @RequestMapping("/")
    public String hello() {
        return iHello.sayHi("this is feign invoke");
    }

    @RequestMapping("/hello")
    public String hello1() {
        return "this is consumer hello method";
    }
}
